package com.hgw.Demo08_StatePattern.Exercises23_8_4;

/**
 * Data time:2021/12/20 18:28
 * StudentID:2019112118
 * Author:hgw
 * Description: 客户端测试类
 */
public class Client {
    public static void main(String[] args) {
        Door door = new Door();
        door.setState(new DoorClosed(door));
        door.click();
        door.timeout();
        door.complete();
        door.click();
        door.click();
        door.click();
        door.click();
        door.complete();
    }

}
